<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://www.etcore.com/grouptalk" prefix="grouptalk"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<head>
<title><c:out value='${context.user_comments }' />-<c:out
	value='${context.title }' /></title>
<link rel="stylesheet" href="/group/css/styles.css" type="text/css">

</head>
<body bottomMargin=0 leftMargin=10 topMargin=0 rightMargin=10
	marginheight="0">
<c:import url="/group/ui-component/divdialog/divdialog.html" />
<table cellpadding=0 cellspacing=0 width=100%>

	<tr>
		<td colspan=2>
		<table width=100% cellspacing=0 cellpadding=0>
			<tr bgcolor="#E3EEFB">
				<td style="height: 50px; font-size: 14px; width: 300px;"><a target=_parent href="/group/viewUser${context.postfix }?targetUserName=${targetUser.userName}" style="font-size:14px;color:#36518B"><b><c:out value="${targetUser.userName}"/></b></a> <b>${context.user_comments}</b><font
					color=#808080>(${userCommentsCount})</font></td>
				<td align=right></td>
			</tr>
		</table>

		</td>
	</tr>


<c:if test="${all>0 }">
	<tr>
		<td align=right height=15 colspan=2><c:if
			test="${not empty param.key}">
			<c:out value='${context.text_find}' />&nbsp;<font color=red><c:out
				value='${param.key}' /></font>&nbsp;</c:if><c:out value='${context.text_related}' />&nbsp;<font
			color=red><c:out value='${all }' /></font>&nbsp;<c:out
			value='${context.text_item}' />:</td>
	</tr>
 
</c:if>
<c:if test="${all==0 }">
	<tr>
		<td align=center style="font-size:12px;color:red;">${context.default_none }</td>
	</tr>
 
</c:if>





	<c:forEach var="comment" items="${comments}">
		<c:set var="commentMsg" value="${comment[0]}msg" />
		<tr>
			<td>

			<table cellpadding=0 cellspacing=0 width=100%>
				<tr>
					<td nowrap width=500 style="border-bottom: 1px solid #d2d4d2;font-size: 12px;color: #005EAC"><c:if
						test="${!(context.msg_encryptedUrl) }">
						<a style="font-size: 12px; cursor: pointer; color: #005EAC"
							href="/group/messagedetail<c:out value='${context.postfix}' />?id=<c:out value='${comment[1]}' />"
							target=_blank>${context.text_reply}:<c:out value='${requestScope[commentMsg][2]}' />
						</a>
					</c:if> <c:if test="${(context.msg_encryptedUrl) }">
						<c:set var='urlFragmentStr' value="?id=${message[0] }" />
						<c:set var='urlFragment'
							value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />
						<a style="font-size: 12px; cursor: pointer; color: #005EAC"
							href="/group/messagedetail<c:out value='${context.postfix}' />/~<c:out value='${urlFragment }' />"
							target=_blank>${context.text_reply}:<c:out value='${requestScope[commentMsg][2]}' />
						</a>
					</c:if></td>
					<td nowrap
						style="font-size: 12px; color: #808080; border-bottom: 1px solid #d2d4d2; text-align: right"> ${comment[4]} </td>
				</tr>




				<tr>
					<td colspan=2>
					<table style="margin-left: -4px;" align=left width=100%>
						<tr><td  style="font-size: 12px; color: #808080"><c:out
						value="${comment[2] } " escapeXml="true" /></td>
							 
							<td width=60 nowrap align=right>
					 
							</td>
					</table>
					</td>
				</tr>
				
		 
			</table>

			<br>
			</td>
		</tr>


	</c:forEach>










	<tr>
		<td height=30></td>
	</tr>
	<tr bgcolor="#ffffff">
		<td align=left colspan=2><c:set var="pid" value="${startpid }" /> <c:forEach
			begin="${startpid }" end="${endpid }" step="1">
			<c:if test="${!(context.encryptedUrl1) }">
				<c:set var="url"
					value="/group/userComments${context.postfix}?pageid=${pid}&gid=${param.gid}&open=${openValue }&targetUserName=${param.targetUserName }" />
				<c:if test='${not empty (param.key) }'>
					<c:set var="url" value="${url }&key=${param.key}" />
				</c:if>
				<a href="${url }"
					<c:if test='${intpageid==pid }'>style="font-weight:bold;color:red;"</c:if>>[<c:out
					value='${pid}' />]</a>
			</c:if>
			<c:if test="${(context.encryptedUrl1) }">
				<c:set var='urlFragmentStr' value="?pageid=${pid}" />
				<c:if test='${not empty param.key }'>
					<c:set var="urlFragmentStr"
						value="${urlFragmentStr }&key=${param.key}&open=${openValue }&targetUserName=${param.targetUserName }" />
				</c:if>
				<c:set var='urlFragment'
					value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />
				<a
					<c:if test='${intpageid==pid }'>style="font-weight:bold;color:red;"</c:if>
					href="/group/userComments<c:out value='${context.postfix}' />/~<c:out value='${urlFragment }' />">
				[<c:out value='${pid}' />]</a>
			</c:if>
			<c:set var="pid" value="${pid+1 }" />
&nbsp;&nbsp;</c:forEach> <c:if test="${intpageid>1 }">
			<c:if test="${!(context.encryptedUrl1) }">
				<c:set var="url"
					value="/group/userComments${context.postfix}?pageid=${intpageid-1}&open=${openValue }&targetUserName=${param.targetUserName }" />
				<c:if test='${not empty (param.key) }'>
					<c:set var="url" value="${url }&key=${param.key}" />
				</c:if>

				<a href="${url }"> [<c:out value='${context.previous_page}' />]
				</a>
			</c:if>
			<c:if test="${(context.encryptedUrl1) }">
				<c:set var='urlFragmentStr' value="?pageid=${intpageid-1}&targetUserName=${param.targetUserName }" />
				<c:if test='${not empty param.key }'>
					<c:set var="urlFragmentStr"
						value="${urlFragmentStr }&key=${param.key}" />
				</c:if>
				<c:set var='urlFragment'
					value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />
				<a
					href="/group/userComments<c:out value='${context.postfix}' />/~<c:out value='${urlFragment }' />">
				[<c:out value='${context.previous_page}' />] </a>
			</c:if>
&nbsp;
</c:if> <c:if test="${intpageid<pagenums }">
			<c:if test="${!(context.encryptedUrl1) }">
				<c:set var="url"
					value="/group/userComments${context.postfix}?pageid=${intpageid+1}&open=${openValue }&targetUserName=${param.targetUserName }" />
				<c:if test='${not empty (param.key) }'>
					<c:set var="url" value="${url }&key=${param.key}" />
				</c:if>
				<a href="${url }"> [<c:out value='${context.next_page}' />] </a>
			</c:if>
			<c:if test="${(context.encryptedUrl1) }">
				<c:set var='urlFragmentStr'
					value="?pageid=${intpageid+1}&gid=${param.gid}&open=${openValue }&targetUserName=${param.targetUserName }" />
				<c:if test='${not empty param.key }'>
					<c:set var="urlFragmentStr"
						value="${urlFragmentStr }&key=${param.key}" />
				</c:if>
				<c:set var='urlFragment'
					value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />
				<a
					href="/group/userComments<c:out value='${context.postfix}' />/~<c:out value='${urlFragment }' />">
				[<c:out value='${context.next_page}' />] </a>
			</c:if>
&nbsp;
</c:if></td>
	</tr>


</table>


</body>

